package com.syy.spider.dao;

import com.syy.spider.pojo.Admin;
import com.syy.spider.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface LoginMapper {
    User selectUserByUserName(@Param("username") String username);

    int addUser(@Param("username") String username, @Param("password") String password);

    Admin selectAdminByUserName(@Param("username") String username);
}
